package com.isoftstone.project.system.service;

import com.isoftstone.framework.domain.Page;
import com.isoftstone.project.system.domain.SysMenu;

import java.util.List;

public interface ISysMenuService {

    SysMenu getMenuById(String menuId)throws Exception;

    SysMenu getMenuByPermission(String permission)throws Exception;

    List<SysMenu> getMenulistPage(Page page) throws Exception;

    List<SysMenu> getMenuAll(String appId) throws Exception;

    void saveSysMenu(SysMenu menu)throws Exception;

    void updateSysMenu(SysMenu menu)throws Exception;

    void deleteSysMenu(String menuId)throws Exception;

    List<SysMenu> getMenuByUrl(String userId)throws Exception;

    List<SysMenu> getMenuByRoleId(String roleId)throws Exception;

    List<SysMenu> getMenuByParentId(String parentId)throws Exception;

    List<String> getMenuByUserId(String userId)throws Exception;
}
